package main

import (
	"flag"
	"fmt"
	"gitee.com/baal1990/epidemic/utils/aksk"
)

func main() {
	var name string
	flag.StringVar(&name, "name", "", "")
	flag.Parse()
	if name == "" {
		flag.Usage()
		return
	}
	ak := aksk.GenAppKey()
	sk := aksk.GenAppSecret(ak, name)
	fmt.Printf("appKey=[%s]\n", ak)
	fmt.Printf("appSecret=[%s]\n", sk)
}
